package com.hhkj.study.api.index.model.req;

import com.hhkj.study.admin.dict.model.req.DictMultiLevelReq;
import com.ruoyi.common.enums.DictCodeEnum;
import com.ruoyi.common.valid.emun.EnumValueCheck;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @Author luowu
 * @Date 2024/9/30 涵 9:58:00
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiDictTreeListReq extends DictMultiLevelReq {

    @EnumValueCheck(message = "类型code有误", target = DictCodeEnum.class)
    @NotBlank(message = "类型code不能为空")
    @Override
    public String getTypeCode() {
        return super.getTypeCode();
    }
}
